package com.gdit.zax.dao;

import java.util.ArrayList;

import com.gdit.zax.entitys.Collect;
import com.gdit.zax.entitys.CourseCollect;
import com.gdit.zax.entitys.VideoInfo;

public interface CollectDao {
	public boolean addCourseCollect(int uid,int courseid);
	public ArrayList<Collect> listCourseCollect(int page,int onepagecount);//管理员使用
	public ArrayList<CourseCollect> listCourseCollect(int uid,int page,int onepagecount);
	public boolean delCourseCollect(int collectid);
	public boolean isCourseCollect(int uid,int cid);
	public int getCourseCollectSum(int uid);//获取用户收藏课程数量
	
	public boolean addSectionCollect(int uid,int sid);
	public ArrayList<Collect> listSectionCollect(int page,int onepagecount);//管理员使用
	public ArrayList<Collect> listSectionCollect(int uid,int page,int onepagecount);
	public boolean delSectionCollect(int cid);
	public boolean isSectionCollect(int uid,int cid);
	public int getSectionCollectSum(int uid);//获取用户收藏课程数量
	
	public boolean addVideoCollect(int uid,VideoInfo video);
	public ArrayList<Collect> listVideoCollect(int page,int onepagecount);//管理员使用
	public ArrayList<Collect> listVideoCollect(int uid,int page,int onepagecount);
	public boolean delVideoCollect(int cid);
	public boolean isVideoCollect(int uid,int cid);
	public int getVideoCollectSum(int uid);//获取用户收藏课程数量
	
	public boolean addNoteCollect(int uid,int nid);
	public ArrayList<Collect> listNoteCollect(int page,int onepagecount);//管理员使用
	public ArrayList<Collect> listNoteCollect(int uid,int page,int onepagecount);
	public boolean delNoteCollect(int cid);
	public boolean isNoteCollect(int uid,int cid);
	public int getNoteCollectSum(int uid);//获取用户收藏课程数量
}
